package com.siashan.unipay4j.wx.pay;

import com.siashan.unipay4j.core.IBaseEnum;

/**
 * 微信支付交易查询错误码
 *
 * @author siashan
 * @date 2024/4/29
 **/
public enum WxTradQueryErrorCodeEnum implements IBaseEnum<String> {
    /**
     * 此交易订单号不存在
     */
    ORDERNOTEXIST("ORDERNOTEXIST", "此交易订单号不存在", "该API只能查提交支付交易返回成功的订单，请商户检查需要查询的订单号是否正确",false),
    /**
     * 系统错误
     */
    SYSTEMERROR("SYSTEMERROR", "系统错误", "系统异常，请再调用发起查询",true),
    ;
    private String value;
    private String desp;

    private String solution;

    /**
     * 是否需要重新发起查询
     */
    private boolean retry;

    WxTradQueryErrorCodeEnum(String value, String desp, String solution,boolean retry) {
        this.value = value;
        this.desp = desp;
        this.solution = solution;
        this.retry = retry;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    public String getSolution() {
        return solution;
    }

    public void setSolution(String solution) {
        this.solution = solution;
    }

    public boolean isRetry() {
        return retry;
    }

    public void setRetry(boolean retry) {
        this.retry = retry;
    }
}
